Auto merge of #1243 - alexcrichton:issue-1239, r=brson
authorbors <bors@rust-lang.org>
Fri, 30 Jan 2015 02:37:24 +0000 (02:37 +0000)
committerbors <bors@rust-lang.org>
Fri, 30 Jan 2015 02:37:24 +0000 (02:37 +0000)
commitd67992d2334a3b8efef839fad4905330e66ec472
tree805e75b0950b99b3c996486574a598314c30e93c
parent174d2320e57ec9629bb81a0f7ca83fe2b662ad91
parent175693a2e1268a3c3654cdca62d0ec00ec2f00f1
Auto merge of #1243 - alexcrichton:issue-1239, r=brson

Previously a build script would assign itself to the platform requirement for
the first target of a package, but it's more correct to consider all targets for
platform requirements as there may be both a plugin and target requirement.

Closes #1236
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/test_cargo_cross_compile.rs